/**
 * Created by Winn on 2018-04-25.
 */
// projectIntro
var currNumber,tempLeft,count=$(".projectIntro .engineering_show .content .right ul li").length;
currNumber=0;
tempLeft=-85;
$(".projectIntro .next").bind("click",function(){
    num=tempLeft*currNumber;
    if(num < tempLeft*(count-4)){
        currNumber=0;
        num=0;
        $(".projectIntro .engineering_show ul").animate({"left":"0px"},300);
        return false;
    }
    currNumber++;
    num=tempLeft*currNumber;
    $(".projectIntro .engineering_show  ul").animate ({left:num+"px"}, 300);
});
$(".projectIntro .prev").bind("click",function(){
    num=tempLeft*currNumber;
    if(num >= 0){
        currNumber=count-3;
        num=tempLeft*currNumber;
        $(".projectIntro .engineering_show ul").animate({"left":num+"px"},300);
        return false;
    }
    currNumber--;
    num=tempLeft*currNumber;
    $(".projectIntro .engineering_show ul").animate ({left:num+"px"}, 300);
});

$(".projectIntro .engineering_show .content .right ul li").bind("click",function(){
    var URL=$(this).find("img").attr("src");
    $(".projectIntro .engineering_show .content .right .picShow").attr("src",URL);
});
$('.price').click(function(){
    $("#fixed-bottom-bar").animate({left: '0'},300);
    $(this).animate({left: '-130px'},300);
});

$('.close').click(function(){
    $("#fixed-bottom-bar").animate({left: '-100%'},300);
    $('.price').animate({left: '0'},300);
});

var a= $(window).scrollTop();
console.log(a)